package com.github.dice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

public class RoomAndPlayerMapping extends Model<RoomAndPlayerMapping> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "room_and_player_mapping_id", type = IdType.AUTO)
    private Integer roomAndPlayerMappingId;

    private String roomNumber;

    private String playerName;

    private Integer isDelete;

    public Integer getRoomAndPlayerMappingId() {
        return roomAndPlayerMappingId;
    }

    public void setRoomAndPlayerMappingId(Integer roomAndPlayerMappingId) {
        this.roomAndPlayerMappingId = roomAndPlayerMappingId;
    }
    public String getRoomNumber() {
        return roomNumber;
    }

    public void setRoomNumber(String roomNumber) {
        this.roomNumber = roomNumber;
    }
    public String getPlayerName() {
        return playerName;
    }

    public void setPlayerName(String playerName) {
        this.playerName = playerName;
    }
    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    protected Serializable pkVal() {
        return this.roomAndPlayerMappingId;
    }

    @Override
    public String toString() {
        return "RoomAndPlayerMapping{" +
        "roomAndPlayerMappingId=" + roomAndPlayerMappingId +
        ", roomNumber=" + roomNumber +
        ", playerName=" + playerName +
        ", isDelete=" + isDelete +
        "}";
    }
}
